package com.message.constant;

import com.message.Message;
import com.message.register.RpcRegisterRequest;
import com.message.register.RpcRegisterResponse;

import java.util.HashMap;
import java.util.Map;

/**
 * @author linyu.dai
 * @project rpc
 * @description 消息类型
 * @creat 2022/11/27 15:28:57
 */
public class MessageType {

    //RPC 注册请求
    public static final int RPC_REGISTER_REQUEST = 0;

    //RPC 注册响应
    public static final int RPC_REGISTER_RESPONSE = 1;

    //远程调用请求
    public static final int RPC_REQUEST_MESSAGE = 2;

    //远程调用响应
    public static final int RPC_RESPONSE_MESSAGE = 3;

    //心跳信息
    public static final int PING_MESSAGE = 4;

    //注册中心通知客户端
    public static final int REGISTER_NOTIFY_MESSAGE = 5;
}
